package com.lc.fbtp.draftmsg.core.format;

import com.thoughtworks.xstream.XStream;

public class DraftFormatter {
	
	private static DraftFormatter draftFormatter = null;
	
	private DraftFormatter(){
	}

	public static DraftFormatter getInstance(){
		if(draftFormatter == null) {
			draftFormatter = new DraftFormatter();
		}
		return draftFormatter;
	}
	
	public String formatDraft(Object object){
		XStream xstream = new XStream();
		return xstream.toXML(object);
	}
}
